<?php
	if (empty($list_search)){
	echo "Data tidak ditemukan";
	}else{
	echo "<table class=\"well fade-in\" width=\"100%\">";
	$no=1;
	$sel=1;
	foreach($list_search as $kamar){
		switch($sel){
			case 1 : {
				echo "<tr><td width=\"30%\" valign=\"top\" align=\"right\"><center><font size=\"+2\" face=\"SHOWCARD GOTHIC\">".$kamar->rooms_name.
				"<br><input type=\"hidden\" name=\"rooms_no\" value=\"".$kamar->rooms_no."\"><img  class=\"img-polaroid\" src=\"upload/".$kamar->room_figure."\" width=\"150px\"><br></center>".
				"<form method=\"POST\"><input type=\"hidden\" name=\"rooms_no\" value=\"".$kamar->rooms_no."\"><br>
				<input class=\"btn btn-inverse\" name=\"Details\" type=\"submit\" value=\"Details\"></td></form>";
				$sel = $sel+1;
				break;
			}
			case 2 : {
				echo "<td width=\"30%\" valign=\"top\" align=\"right\"><center><font size=\"+2\" face=\"SHOWCARD GOTHIC\">".$kamar->rooms_name.
				"<br><input type=\"hidden\" name=\"rooms_no\" value=\"".$kamar->rooms_no."\"><img class=\"img-polaroid\" src=\"upload/".$kamar->room_figure."\" width=\"150px\"><br></center>".
				"<form method=\"POST\"><input type=\"hidden\" name=\"rooms_no\" value=\"".$kamar->rooms_no."\"><br>
				<input class=\"btn btn-inverse\" name=\"Details\" type=\"submit\" value=\"Details\"></td></form>";
				$sel = $sel+1;
				break;
			}
			case 3 : {
				echo "<td width=\"30%\" valign=\"top\" align=\"right\"><center><font size=\"+2\" face=\"SHOWCARD GOTHIC\">".$kamar->rooms_name.
				"<br><input type=\"hidden\" name=\"rooms_no\" value=\"".$kamar->rooms_no."\"><img class=\"img-polaroid\" src=\"upload/".$kamar->room_figure."\" width=\"150px\"><br></center>".
				"<form method=\"POST\"><input type=\"hidden\" name=\"rooms_no\" value=\"".$kamar->rooms_no."\"><br>
				<input class=\"btn btn-inverse\" name=\"Details\" type=\"submit\" value=\"Details\"></td></form>";
				$sel = 1;
				break;
			}      
		}
	}
	echo "</tr></table>";
	}
?>